package com.javadroid.laboratorio;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;

public class setDatesFormats {
	
	
	public static void main(String[] args) {
		SimpleDateFormat f = new SimpleDateFormat("dd");
		Calendar c = Calendar.getInstance();
		StringBuffer buff = new StringBuffer();
		if(c.get(Calendar.DAY_OF_WEEK) == 1){ //domingo
			c.add(Calendar.DATE, 1);
		}
		
		c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
		buff.append(f.format(c.getTime())+" a ");
		
		c.add(Calendar.DATE,5);
		buff.append(f.format(c.getTime()));
		
		System.out.println(buff);

		SimpleDateFormat fj = new SimpleDateFormat("MMMM", new Locale("pt","BR"));
		System.out.println (fj.format(c.getTime())); 

	}

}
